#!/bin/bash

clang -D__x86_64__ -DLINUX_HOST \
    -target bpf \
    -O2 \
    -g \
    -I./include \
    -c ./src/funclatency.bpf.c \
    -o ./out/funclatency.bpf.o
    

bpftool gen skeleton ./out/funclatency.bpf.o > ./include/funclatency.skel.h

clang++ -DLINUX_HOST \
    -I./include \
    -I./utils \
    ./src/funclatency.cpp \
    -o ./out/funclatency
    
